const filterOption = {
  items: [
    {
      label: "关键字",
      type: "input",
      data: undefined,
      placeholder: "订单编号/售中单号/定制编码/收件人/手机号/用户ID",
      value: undefined,
      key: "keyWord"
    },
    {
      label: "入库单类型",
      type: "dropdown",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "type"
    },
    {
      label: "入库单状态",
      type: "dropdown",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "status"
    },
    {
      label: "入库仓库",
      type: "dropdown",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "locationId"
    },
    {
      label: "供应商",
      type: "dropdown",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "supplierCode"
    },
    {
      label: "入库日期",
      type: "datetimerange",
      data: undefined,
      placeholder: "请选择",
      value: undefined,
      key: "onSaleApplyTime"
    },
  ],
  btnGroup: [{
    label: "查询",
    type: "search"
  },
  {
    label: "清除",
    type: "clear"
  }
  ],
  close: true
};

const path = ['仓储管理', '入库管理', '采购入库列表'];
const pager = {
  params: {
    pageIndex: 1,
    pageSize: 10,
  },
  pageTotal: 0,
  pageSizeArr: [10, 20, 30, 40]
};

const searchFromData = {}

const configArr = [{
  color: "brown",
  label: "全部订单",
  value: "type1",
  count: 300
},
{
  color: "green",
  label: "待入库订单",
  value: "type2",
  count: 300
},
];
const dialogForm = {
  payMethod: undefined,
  serialNumber: undefined,
  paymentMoney: undefined,
  payTime: undefined,
}

let Model = {
  data() {
    return {
      Model: {
        path,
        pager,
        filterOption,
				defaultFilterOption:filterOption,
        configArr,
        dialogForm,
        dialogFormVisible: false,
        nowSelectId: undefined,
        tableData: [{ saleNumber: 1 }],
        filterOptionData: undefined,
        saleManList: {},
        saleAfterOrderStatus: {},
        selectionList: [],
        searchFromData,
        defaultSearchFromData: searchFromData,
        // tableData: undefined,
        activeTab: '1',
        detailDialogFlag: false
      }
    }
  }
}
export default Model;
